home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 521 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  2.0 KB

  1. From: arrouye@marin.fdn.fr (Yves Arrouye)
  2. Message-ID: <ARROUYE.96Feb18152057@marin.fdn.fr>
  3. X-Original-Date: 18 Feb 1996 14:20:57 GMT
  4. Path: in2.uu.net!bounce-back
  5. Date: 19 Feb 96 01:33:41 GMT
  6. Approved: fjh@cs.mu.oz.au
  7. Newsgroups: comp.std.c++
  8. Subject: Re: #ifdef XXXX
  9. Organization: Personal site
  10. References: <1996Feb1.092058.4745@iiasa.ac.at> <9602020740.22411@mulga.cs.mu.OZ.AU>
  11.     <9602141406.AA16760@sparc5.ferndown.ate.slb.com>
  12.     <4fukhs$fc3@hermes.acs.unt.edu>
  13. In-Reply-To: johnw@jove.acs.unt.edu's message of 15 Feb 96 12:07:00 GMT
  14. X-Auth: PGPMoose V1.1 PGP comp.std.c++
  15.     iQBFAgUBMSfTjuEDnX0m9pzZAQFLGAF/ZuIm/DJJdpC7UUmfJKrxyzotcL8cyG+5
  16.     wtrvmg9dJoe+ikjyvwepYpOnsyktuXUw
  17.     =aV6q
  18.  
  19. In article <4fukhs$fc3@hermes.acs.unt.edu> johnw@jove.acs.unt.edu
  20. (John R. Williams) writes:
  21.  
  22.    devitto@ferndown.ate.slb.com wrote:
  23.    > What about Bjarne's idea of "include" as a keyword that only has the
  24.    > effect of a #include if the file has not been "include"d already.
  25.  
  26.    > I suppose the idea is that the compiler builds a table (like gcc does for
  27.    > wrapped includes) - pretty simple really.
  28.  
  29.    > Ideas about why this won't work ???
  30.  
  31.    Personally I'll continue to advocate "#once" to prevent multiple 
  32.    inclusion of a header for these reasons:
  33.  
  34. So instead of adding yet another preprocessor directive, why not use
  35. Objective C's #import which does exactly that? (I know this is also a
  36. reason for *not* using it in order to make clear that the header file
  37. is a C++ one, but I don't tjink it will be sooo confusing).
  38.  
  39. YA.
  40. --
  41. Yves Arrouye       |  arrouye@marin.fdn.fr | http://www-scope.imag.fr/~arrouye
  42. 7, av. Leon Bollee +-----------------------+---------+------------------------
  43. 75013 Paris        |  Home voice: +33 1 53 61 09 55  |  Fax: +33 1 53 61 09 55
  44. France             |  Please use these only between 8:00 AM and 11:00 PM, MET!
  45. ---
  46. [ comp.std.c++ is moderated.  Submission address: std-c++@ncar.ucar.edu.
  47.   Contact address: std-c++-request@ncar.ucar.edu.  Moderation policy:
  48.   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html. ]
  49.